﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("P_CPY_Guid", Name = "idx_CPY_Guid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_client_post
{
    [Key]
    public int P_AutoID { get; set; }

    public Guid P_Guid { get; set; }

    public Guid P_Dep_Guid { get; set; }

    [Required]
    [StringLength(100)]
    public string P_Name { get; set; }

    public int P_Order { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime P_AddTime { get; set; }

    public Guid? P_AddEmp_Guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime P_ModTime { get; set; }

    public Guid? P_ModEmp_Guid { get; set; }

    /// <summary>
    /// 1有效，-1无效
    /// </summary>
    public int? P_IsValid { get; set; }

    public Guid P_CPY_Guid { get; set; }
}
